import java.awt.Color;
import java.util.ArrayList;
import java.util.List;

/**
 * Steven Cozart
 * 2011
 */

/**
 * @author Steven Cozart
 * @version 0.0
 */
public class Player {
	
	private Color my_color;
	private String my_flag;
	private List<Card> my_cards;
	private String my_name;

	public Player(Color the_color, String the_flag, String the_name ){
		my_color = the_color;
		my_flag = the_flag;
		my_cards = new ArrayList<Card>();
		my_name = the_name;
	}
	
	/**
	 * @return The color used to represent the player.
	 */
	public Color getColor(){
		return my_color;
	}
	
	/**
	 * @return The name of the player.
	 */
	public String getName(){
		return my_name;
	}
	
	/**
	 * @return The file name for flag image.
	 */
	public String getflag(){
		return my_flag;
	}
	
//	/**
//	 * @return The players number.
//	 */
//	public int getPlayerNum(){
//		return my_num;
//	}
	
	/**
	 * 
	 */
	public void addCard(Card the_card){
		my_cards.add(the_card);
	}
	
	/**
	 * 
	 * @param the_card
	 */
	public void removeCard(Card the_card){
		my_cards.remove(the_card);
	}
	/**
	 * @return the cards currently held by the player.
	 */
	public List getCards(){
		return my_cards;
	}
	
}
